import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 11951
 * Date: 2025-10-26
 * Time: 21:10
 */

public class Test {
    public static void main(String[] args) {
        /**
         * . 判断一个数字是正数，负数，还是零
         */
        int num = -20;
        if(num>0){
            System.out.println("正数");
        } else if (num<0) {
            System.out.println("负数");
        }else{
            System.out.println("该数为0");
        }
    }
    /**
     * 1判断一个数字是奇数还是偶数
     */
    public static void main2(String[] args) {
        int num = 4;
        if(num % 2 == 0){
            System.out.println("是偶数");
        }else{
            System.out.println("是奇数");
        }
    }
    public static void main1(String[] args) {

        Scanner scanner = new Scanner(System.in);
        System.out.print("请输入成绩：");
        int score = scanner.nextInt();
        if(score>=90 && score<=100) {
            System.out.println("优秀");
        } else if (score>=80 && score<90) {
            System.out.println("良好");
        } else if (score>=70 && score<80) {
            System.out.println("中等");
        } else if (score>=60 && score<70) {
            System.out.println("及格");
        }else if (score>=0 && score<60) {
            System.out.println("不及格");
        }else{
            System.out.println("输入有误");
        }

    }
}
